package com.frejoys.common.dto.common.login;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
public class VerifyCodeDto {

    // @NotBlank(message = "{600}")
    @Schema(type = "String", name = "accountExtend", description = "电话：电话区号；邮箱：邮箱名称", required = false, defaultValue = "86")
    private String accountExtend;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "account", description = "账号：电话或邮箱", required = true, defaultValue = "Lm9rg25BrkzYzx2Hl7TWVw==")
    private String account;

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "type", description = "账号类型：1电话，2邮箱", required = true, defaultValue = "1")
    private Integer type;

}
